package com.zyj.ssm.service.impl;  
  
import javax.annotation.Resource;  
  



import org.springframework.stereotype.Service;  

import com.zyj.ssm.dao.UserMapper;
import com.zyj.ssm.pojo.User;
import com.zyj.ssm.service.IUserService;
  
  
@Service("userService")  
public class UserServiceImpl implements IUserService {  
    @Resource  
    private UserMapper userDao;
    public User getUserById(int userId) {  
        return this.userDao.selectByPrimaryKey(userId);  
    }  
  
}  